/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.device.bas;

import hxg.portmgr.core.device.intf.AbstractIntf;
import hxg.portmgr.core.ip.IpAddress;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author hxg
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {} )
@XmlRootElement(name = "IPPoolEntry")
public class IPPoolEntry implements Serializable ,AbstractIntf{

    String index;
    String name;
    IpAddress router_ip;
    String priDns;
    String secDns;
    String vpnInstance;
    String type;
    int total;
    @XmlTransient
    int used;

    public IPPoolEntry() {
    }
    
    public IPPoolEntry(String index, String name) {
        this.index = index;
        this.name = name;
    }

    public String getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }

    public String getPriDns() {
        return priDns;
    }

    public void setPriDns(String priDns) {
        this.priDns = priDns;
    }

    public IpAddress getRouter_ip() {
        return router_ip;
    }

    public void setRouter_ip(IpAddress router_ip) {
        this.router_ip = router_ip;
    }

    public String getSecDns() {
        return secDns;
    }

    public void setSecDns(String secDns) {
        this.secDns = secDns;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVpnInstance() {
        return vpnInstance;
    }

    public void setVpnInstance(String vpnInstance) {
        this.vpnInstance = vpnInstance;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getUsed() {
        return used;
    }

    public void setUsed(int used) {
        this.used = used;
    }

    @Override
    public String toString() {
        return name;
    }
}
